using System;

namespace WCS.Infrastructure.Attr
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
    public class RequireRoleTypesAttribute : Attribute
    {
        public int[] AllowedRoleTypes { get; }

        public RequireRoleTypesAttribute(params int[] allowedRoleTypes)
        {
            AllowedRoleTypes = allowedRoleTypes ?? Array.Empty<int>();
        }
    }
}